package com.bookmarket.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Chen Zhaoguang
 * @date 2017/12/26 10:47
 */

/**
 *活动
 */
public class Active {
    private int id;
    private String name;//活动名称
    private String picture;//图片
    private Btype btype;//大类型外键
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;//开始时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;//结束时间
    private String content;
    private Float discount;

    public Active() {

    }

    public Active(int id, String name, String picture, Btype btype, Date createTime, Date endTime, String content, Float discount) {
        this.id = id;
        this.name = name;
        this.picture = picture;
        this.btype = btype;
        this.createTime = createTime;
        this.endTime = endTime;
        this.content = content;
        this.discount = discount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Float getDiscount() {
        return discount;
    }

    public void setDiscount(Float discount) {
        this.discount = discount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Btype getBtype() {
        return btype;
    }

    public void setBtype(Btype btype) {
        this.btype = btype;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
